package com.spring.campus_express_delivery.service;

import com.github.pagehelper.PageInfo;
import com.spring.campus_express_delivery.entity.Notices;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface NoticesService {
    //添加公告
    void insertNotices(Notices notices);
    //公告列表
//    List<Notices> selectAll();
    //单个公告查询
    Notices selectId(String noticeNum);
    //修改公告
    void updateId(Notices notices);
    //删除公告
    public void deleteId(String noticeNum);
    //导入公告信息
    void importNoticesExcel(MultipartFile usersFile) throws IOException;
    //导出公告信息
    void exportNoticesExcel(HttpServletResponse response) throws Exception;

    List<Notices> selectNotice(String keyWord);
//    公告列表
    PageInfo<Notices> selectAll(int pageNo, int pageSize);
}
